package com.example.firstjavamqtt.service.log;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.firstjavamqtt.model.base.BaseDeviceLogDto;
import com.example.firstjavamqtt.model.log.InfraredMonitorLog;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Date;

//红外检测模块日志
public interface InfraredLogService extends IService<InfraredMonitorLog> {

    //保存
    void saveInfraredMonitorLog(String string, HttpServletRequest request);
    //根据ID删除
    void deleteInfraredMonitorLogById(int id);
    //根据设备ID删除
    void deleteInfraredMonitorLogByDeviceId(String deviceId);
    //查redis并保存
    void saveByDeviceId(String deviceId);
    //根据dto获得日志
    Page<InfraredMonitorLog> getInfraredListByDto(int pageNum, int limit, BaseDeviceLogDto dto);
    //根据批量id删除
    void deleteInfraredMonitorLogByBatchId(ArrayList<Integer> batchId);

    Page<InfraredMonitorLog> getAllInfraredLog(int pageNum, int limit);
}
